package com.tms.springboot.service;

import com.github.pagehelper.PageInfo;
import com.tms.springboot.aggregation.pojo.PdFleet;
import com.tms.springboot.base.pojo.PdTruckDriver;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tms.springboot.base.pojo.PdTruckDriverLicense;
import com.tms.springboot.vo.PdTruckDriverBasicInfoVo;
import com.tms.springboot.vo.PdTruckDriverInfoVo;
import com.tms.springboot.vo.PdTruckDriverVo;
import com.tms.springboot.vo.PdTruckVo;

/**
 * <p>
 * 司机表 服务类
 * </p>
 *
 * @author cjj
 * @since 2023-06-14
 */
public interface PdTruckDriverService extends IService<PdTruckDriver> {

    /***
     * 根据用户id查询司机信息
     * @param userId
     * @return
     */
    PdTruckDriver queryDriverByUserIdService(String userId);

    PageInfo<PdTruckDriverInfoVo> queryDriverInfoService(PdTruckDriverVo pdTruckDriverVo);

    PdTruckDriverBasicInfoVo queryDriverBasicInfoByIdService(String id);

    PdTruckVo queryTruckByIdService(String id);

    PdTruckDriverLicense queryLicenseByUserIdService(String id);

    Boolean updLicenseByIdService(PdTruckDriverLicense pdTruckDriverLicense);


}
